create_empty_csr_matrix Function

public pure function create_empty_csr_matrix(m, n, nnz) result(rst)

Creates an empty CSR matrix.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: m

The number of rows in the matrix.

integer(kind=int32), intent(in) :: n

The number of columns in the matrix.

integer(kind=int32), intent(in) :: nnz

The number of non-zero values in the matrix.

Return Value type(csr_matrix)

The empty CSR matrix.